package org.example.springblog.model;

import lombok.Data;
import org.example.springblog.utils.DateUtils;

import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 九转苍翎
 * Date: 2025/8/3
 * Time: 14:24
 */
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Boolean isLoginUser;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;

    public String getCreateTime(){
        return DateUtils.dateFormat(this.createTime);
    }
}
